import {pget, ppostJson} from '@/utils/req'
import {modalApi} from '@/utils/modalReq'

// 获取出库管理列表
export function getWarehouseoutList(query?: any) {
	return pget(`${modalApi.storage}/warehouseout/page`, query)
}

// 新增出库
export function addWarehouseout(data: any) {
	return ppostJson(`${modalApi.storage}/warehouseout/save`, data)
}

// 修改出库
export function editWarehouseout(data: any) {
	return ppostJson(`${modalApi.storage}/warehouseout/update`, data)
}

// 查看出库详情
export function warehouseoutInfo(id: string) {
	return pget(`${modalApi.storage}/warehouseout/detail/${id}`)
}

// 删除出库
export function deleteWarehouseout(id: string) {
	return ppostJson(`${modalApi.storage}/warehouseout/remove/${id}`)
}

// 选择入库货物
export function getGoodsList(query?: any) {
	return pget(`${modalApi.storage}/warehousein/goods/page`, query)
}
